<?php

if (!defined('PATH_HD'))
    exit('No direct script access allowed');

class IndexControl extends Control {

    function index() {
        $a = include PATH_CONFIG . '/config.php';
        $db = M('category');
        $rows = $db->all();
        $arr = channel($rows);
        $this->assign('nav', $arr);
        $this->display();
    }

    function arcList() {
        $this->display();
    }

    function content() {
        $aid = (int) $_GET['aid'];
        $db = M('arc');
        $rows = $db->find($aid);
        $this->assign('ro', $rows);
        $this->display();
    }

}

?>